#include<stdio.h>

int *serach(int (*p)[4],int n)
{
	int *s;
	s=*(p+n);
	return s;
}

int main()
{
	int score[][4]={{10,11,12,13},{14,15,16,17},{18,19,20,21},{22,23,24,25}};
	int i,n;
	int *p;
	scanf("%d",&n);
	p=serach(score,n);
	for(i=0;i<4;i++)
	{
		printf("%d ",*(p+i));
	}
	printf("\n")
	return 0;
}
